<?php
class RequestItem extends AppModel {
    var $name = 'RequestItem';
    var $validate = array(
        'sub_category_id' => array(
            'numeric' => array(
                'rule' => array('numeric'),
                //'message' => 'Your custom message here',
                //'allowEmpty' => false,
                //'required' => false,
                //'last' => false, // Stop validation after this rule
                //'on' => 'create', // Limit validation to 'create' or 'update' operations
            ),
        ),
    );
    //The Associations below have been created with all possible keys, those that are not needed can be removed

    var $belongsTo = array(
        'Request' => array(
            'className' => 'Request',
            'foreignKey' => 'request_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'SubCategory' => array(
            'className' => 'SubCategory',
            'foreignKey' => 'sub_category_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );
}
?>